
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreProductCouponRequest struct {

	ProductId string `json:"product_id" form:"product_id"`

	IssueCouponId string `json:"issue_coupon_id" form:"issue_coupon_id"`

	AddTime string `json:"add_time" form:"add_time"`

	Title string `json:"title" form:"title"`

}

func (r *StoreProductCouponRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreProductCouponRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"product_id": "required",

		"issue_coupon_id": "required",

		"add_time": "required",

		"title": "required",

	}
}

func (r *StoreProductCouponRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductCouponRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductCouponRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
